package com.yuelao.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author FLY
 * @version v1.0
 * @project yuelao-server
 * @date 2017/9/11 18:20
 * @修改记录 版本       修改人         修改时间         修改内容描述
 * --------------------------------------------------
 * <p>
 * --------------------------------------------------
 */
@Slf4j
@Component
public class EventListener implements ApplicationListener<Event> {
    @Override
    public void onApplicationEvent(Event event) {
        EnumEvent enumEvent = (EnumEvent) event.getSource();
        log.info("监听到#######{}事件", event.getMsg());
        switch (enumEvent) {
            case UNZIP:
                break;
            case IMPORT_FILE:
                break;
            case CHECK_FILE:

                break;
            case SURE_CHECK:
                break;
            default:
                break;
        }
    }
}
